/*
 * Splas.java
 *
 * Created on 24 de noviembre de 2006, 06:26 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package splas;

import javax.swing.JFrame;
import javax.swing.JWindow;

/**
 *
 * @author jsanchez
 */
public class Splas extends JWindow{
    
    /** Creates a new instance of Splas */
    SplasPlanel splasPlanel=new SplasPlanel();
    public Splas(JFrame frame) {
        super(frame);
//        this.add(new SplasPlanel());
        getContentPane().add(splasPlanel, java.awt.BorderLayout.CENTER);        
        pack();
        java.awt.Dimension dimensionScreen = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        java.awt.Rectangle dimensionPantalla = getBounds();
        setLocation((dimensionScreen.width - dimensionPantalla.width) / 2, (dimensionScreen.height - dimensionPantalla.height) / 2);        
        
//        this.setVisible(true);
    }
    
    public void setValorMaxino(Integer valor){
        this.splasPlanel.setValorMaxino(valor);
    }
    
    public void setValor(Integer valor,String lib){
        this.splasPlanel.setValor(valor,lib);
    }    
    
}
